﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace Kokomo.PeInspector.VisualStudioAdapter
{
	/// <summary>
	/// Represents an item within a <see cref="CSharpProject"/>.
	/// </summary>
	/// <seealso cref="CompileItem"/>
	/// <seealso cref="ReferenceItem"/>
	/// <seealso cref="ResourceItem"/>
	public abstract class ProjectItem
	{
		public string Include { get; set; }

		protected void WriteXmlAttributes(XmlWriter writer)
		{
			if (this.Include != null) writer.WriteAttributeString("Include", this.Include);
		}
		public abstract void WriteXml(XmlWriter writer);
	}
}
